package com.yj.model;

import java.io.Serializable;
import java.util.Set;

public class Student implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;
	private Academy academy;
	private Role role;
	private Classes classes;
	private String password;
	private String name;
	private String email;
	private Set<Sc> scs;
	
	private int scsNum;

	public Student() {
	}

	public Student(Academy academy, Role role, Classes classes, String password, String name, String email) {
		this.academy = academy;
		this.role = role;
		this.classes = classes;
		this.password = password;
		this.name = name;
		this.email = email;
	}

	public Student(Academy academy, Role role, Classes classes, String password, String name, String email,
			Set<Sc> scs) {
		this.academy = academy;
		this.role = role;
		this.classes = classes;
		this.password = password;
		this.name = name;
		this.email = email;
		this.scs = scs;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Academy getAcademy() {
		return academy;
	}

	public void setAcademy(Academy academy) {
		this.academy = academy;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Classes getClasses() {
		return classes;
	}

	public void setClasses(Classes classes) {
		this.classes = classes;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Set<Sc> getScs() {
		return scs;
	}

	public void setScs(Set<Sc> scs) {
		this.scs = scs;
		this.scsNum = scs.size();
	}

	public int getScsNum() {
		return scsNum;
	}
	
}
